package com.atguigu.spzx.pay.mapper;

import com.atguigu.spzx.model.entity.pay.PaymentInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: PaymentInfoMapper
 * Package: com.atguigu.spzx.pay.mapper
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/21 9:39
 * @Version 1.0
 */
@Mapper
public interface PaymentInfoMapper {
    /**
     * 保存交易流水日志
     * @param paymentInfo
     */
    void save(PaymentInfo paymentInfo);

    /**
     * 根据订单编号查询
     * @param orderNo
     * @return
     */
    PaymentInfo getByOrderNo(String orderNo);

    /**
     * 根据id更新
     * @param paymentInfo
     */
    void updateById(PaymentInfo paymentInfo);
}
